import { defineStore } from 'pinia'
// import { ref } from 'vue'

export const CriteriaStore = defineStore(
  'select_rt',
  () => {
    const experienece = [

        {"name": "经验不限"},
        {"name": "1年以内"},
        {"name": "1-3年"},
        {"name": "3-5年"},
        {"name": "5-10年"},
        {"name": "10年以上"}
    ]
    const userID = [
        {"name": "不限"},
        {"name": "在校生"},
        {"name": "应届生"}
    ]
    const salary = [
        {"name": "不限",
            "bottom": 0,
            "top": 0,

        },
        {"name": "3K以下",
         "bottom": 0,
         "top": 3000,},
        {"name": "3-5K",
        "bottom": 3000,
            "top": 5000,

        },
        {"name": "5-10K",
        "bottom": 5000,
            "top": 10000,

        },
        {"name": "10-20K",
        "bottom": 10000,
            "top": 20000,

        },
        {"name": "20-50K",
        "bottom": 20000,
            "top": 50000,

        },
        {"name": "50K以上",
        "bottom": 50000,
            "top": 100000000,

        }
    ]
    const degrees = [
        {"name": "不限"},
        {"name": "初中及以下"},
        {"name": "中专/中技"},
        {"name": "高中"},
        {"name": "大专"},
        {"name": "本科"},
        {"name": "硕士"},
        {"name": "博士"}
    ]
    const scale = [
        {"name": "不限"},
        {"name": "0-20人"},
        {"name": "20-99人"},
        {"name": "100-499人"},
        {"name": "500-999人"},
        {"name": "1000-9999人"},
        {"name": "10000人以上"}
    ]
    const financing = [
        {"name": "不限"},
        {"name": "未融资"},
        {"name": "天使轮"},
        {"name": "A轮"},
        {"name": "B轮"},
        {"name": "C轮"},
        {"name": "D轮及以上"},
        {"name": "已上市"},
        {"name": "不需要融资"}
    ]
    const industry = [
        {"name": "互联网"},
        {"name": "电子商务"},
        {"name": "计算机软件"},
        {"name": "人工智能"},
        {"name": "大数据"},
        {"name": "半导体/芯片"},
        {"name": "酒店/民宿"},
        {"name": "电子/半导体/集成电路"},
        {"name": "休闲/娱乐"},
        {"name": "美容/美发"},
        {"name": "进出口贸易"},
        {"name": "服装/纺织"},
        {"name": "信息安全"},
        {"name": "装修/装饰"},
        {"name": "建筑设计"},
    ]
    const Industry = [
        {"name": "互联网/AI"},
        {"name": "电子/电气/通信"},
        {"name": "产品"},
        {"name": "客服/运营"},
        {"name": "销售"},
        {"name": "人力/行政/法务"},
        {"name": "财务/审计/税务"},
        {"name": "生产制造"},
        {"name": "零售/生活服务"},
        {"name": "餐饮"},
        {"name": "酒店/旅游"},
        {"name": "教育培训"},
        {"name": "设计"},
        {"name": "房地产/建筑"},
        {"name": "直播/影视/传媒"},
        {"name": "市场/公关/广告"},
        {"name": "物流/仓储/司机"},
        {"name": "采购/贸易"},
        {"name": "汽车"},
        {"name": "医疗健康"},
        {"name": "金融"},
        {"name": "咨询/翻译/法律"},
        {"name": "能源/环保/农业"},
        {"name": "高级管理"},
        {"name": "其他"},
    ]
    const salary_bottom = [
        {"label" : 1000,
            "value" : 1000,
        },
        {"label" : 2000,
            "value" : 2000,
        },
        {"label" : 3000,
            "value" : 3000,
        },
        {"label" : 4000,
            "value" : 4000,
        },
        {"label" : 5000,
            "value" : 5000,
        },
        {"label" : 6000,
            "value" : 6000,
        },
        {"label" : 7000,
            "value" : 7000,
        },
        {"label" : 8000,
            "value" : 8000,
        },
        {"label" : 10000,
            "value" : 10000,
        },
        {"label" : 12000,
            "value" : 12000,
        },
        {"label" : 14000,
            "value" : 14000,
        },
        {"label" : 16000,
            "value" : 16000,
        },
        {"label" : 20000,
            "value" : 20000,
        },
        {"label" : 24000,
            "value" : 24000,
        },
        {"label" : 28000,
            "value" : 28000,
        },
        {"label" : 30000,
            "value" : 30000,
        },
        {"label" : 34000,
            "value" : 34000,
        },
        {"label" : 38000,
            "value" : 38000,
        },
        {"label" : 40000,
            "value" : 40000,
        }
    ]
    const salary_top = [
        {"label" : 2000,
            "value" : 2000,
        },
        {"label" : 3000,
            "value" : 3000,
        },
        {"label" : 4000,
            "value" : 4000,
        },
        {"label" : 5000,
            "value" : 5000,
        },
        {"label" : 6000,
            "value" : 6000,
        },
        {"label" : 7000,
            "value" : 7000,
        },
        {"label" : 8000,
            "value" :8000,
        },
        {"label" : 9000,
            "value" : 9000,
        },
        {"label" : 10000,
            "value" : 10000,
        },
        {"label" : 12000,
            "value" : 12000,
        },
        {"label" : 14000,
            "value" : 14000,
        },
        {"label" : 16000,
            "value" : 16000,
        },
        {"label" : 18000,
            "value" : 18000,
        },
        {"label" : 20000,
            "value" : 20000,
        },
        {"label" : 23000,
            "value" : 23000,
        },
        {"label" : 26000,
            "value" : 26000,
        },
        {"label" : 29000,
            "value" : 29000,
        },
        {"label" : 32000,
            "value" : 32000,
        },
        {"label" : 35000,
            "value" : 35000,
        },
        {"label" : 38000,
            "value" : 38000,
        },
        {"label" : 41000,
            "value" : 41000,
        },
        {"label" : 50000,
            "value" : 50000,
        },
        {"label" : "无上限",
            "value" : -1,
        },
        
    ]
    return {
        experienece,
        userID,
        salary,
        degrees,
        scale,
        financing,
        industry,
        salary_bottom,
        salary_top,
        Industry
    }
  },
  {
    persist: true
  }
)
